package com.weiyuwqj.server.service.item.impl;

import com.weiyuwqj.server.service.base.BaseServiceImpl;
import com.weiyuwqj.server.mapper.BasItemPrepaymentMapper;
import com.weiyuwqj.api.service.BasItemPrepaymentService;
import com.weiyuwqj.api.model.BasItemPrepayment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhangyong on 2016/8/11.
 */
@Service("itemPrepaymentService")
public class BasItemPrepaymentServiceImpl extends BaseServiceImpl<BasItemPrepayment> implements BasItemPrepaymentService{

    @Autowired
    BasItemPrepaymentMapper itemPrepaymentMapper;

    //根据itemId查询单条信息
    @Override
    public BasItemPrepayment getOneByItemId(Integer itemId) {
        return itemPrepaymentMapper.getOneByItemId(itemId);
    }

    //修改
    @Override
    public Integer modifyPrepaymentByItemId(BasItemPrepayment prepayment) {
        return itemPrepaymentMapper.modifyPrepaymentByItemId(prepayment);
    }
}
